package game;


import java.awt.Graphics;
import java.awt.event.KeyEvent;
import java.awt.geom.Point2D;


public class Credits extends Scene{
	
	Background bg;
	boolean clicked, released;
	WaveGames logoWave;
	
	public Credits()
	{
		bg = new Background(12, new Point2D.Double(0, 0), new Point2D.Double(800, 600));
		logoWave = new WaveGames(14, new Point2D.Double(200, 400), new Point2D.Double(50, 36));
		
		 
	}
	
	@Override
	public void update() {
		
		this.logoWave.update();
		if (Keyboard.getInstance().isKeyPressed(KeyEvent.VK_ESCAPE))
			clicked = true;
		if(Keyboard.getInstance().isKeyPressed(KeyEvent.VK_ESCAPE) == false && clicked == true)
			SceneManager.changeScene(0);
	}

	@Override
	public void draw(Graphics g) {
		bg.draw(g);
		this.logoWave.draw(g);
	}


}
